package demo7;

import org.springframework.stereotype.Component;

@Component
public class Pig  implements Pet{
    @Override
    public void hello() {
        System.out.println("扮猪吃虎");
    }
}
